package com.oracleoaec.service.impl;

import java.util.List;

import com.oracleoaec.dao.CarDao;
import com.oracleoaec.dao.impl.CarDaoImpl;
import com.oracleoaec.entity.Car;
import com.oracleoaec.service.CarService;

public class CarServiceImpl implements CarService{

	private CarDao carDao;
	public CarServiceImpl() {
		carDao=new CarDaoImpl();
	}
	@Override
	public List<Car> searchAllCar(String sortWay,int type) {
		return carDao.queryAllCar(sortWay,type);
	}
}
